#include "ThorSceneManager.h"
#include "Scene.h"

ThorSceneManager * ThorSceneManager::selfSingleton = NULL;
Scene* ThorSceneManager::mCurrentScene = NULL;

static Scene* mCurrentScene;

ThorSceneManager* ThorSceneManager::getInstance()
{
	if(ThorSceneManager::selfSingleton == NULL)
	{
		ThorSceneManager::selfSingleton = new ThorSceneManager();
	}

	return ThorSceneManager::selfSingleton;
}

void ThorSceneManager::registerCurrentScene(Scene* _c)
{
	if(mCurrentScene != NULL)
	{
		delete mCurrentScene;
		mCurrentScene = _c;
	}
	else
		mCurrentScene = _c;
}

ThorSceneManager::ThorSceneManager()
{

}